package com.pri.chat.nim.session.action;//package com.pri.chardemo.session.action;
//
//import android.content.Intent;
//
//import com.pri.chardemo.R;
//import com.pri.chardemo.session.activity.SendAckMsgActivity;
//import com.netease.nim.uikit.business.session.actions.BaseAction;
//import com.netease.nim.uikit.business.session.constant.RequestCode;
//import com.netease.nim.uikit.common.ToastHelper;
//import com.netease.nim.uikit.impl.cache.TeamDataCache;
//import com.netease.nimlib.sdk.msg.MessageBuilder;
//import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum;
//import com.netease.nimlib.sdk.msg.model.IMMessage;
//import com.netease.nimlib.sdk.team.model.Team;
//
///**
// * 已读回执action
// * Created by winnie on 2018/3/14.
// */
//
//public class AckMessageAction extends BaseAction {
//
//    public AckMessageAction() {
//        super(R.drawable.message_plus_ack_selector, R.string.input_panel_ack_msg);
//    }
//
//    @Override
//    public void onClick() {
//        // 只在小于100人的群里有效
//        Team team = TeamDataCache.getInstance().getTeamById(getContainer().account);
//        if (team != null && team.getMemberCount() > 100) {
//            ToastHelper.showToast(getContainer().activity, "已读回执适用于小于100人的群");
//            return;
//        }
////        SendAckMsgActivity.startActivity(getContainer().activity, getContainer().account, makeRequestCode(RequestCode.SEND_ACK_MESSAGE));
//    }
//
//    @Override
//    public void onActivityResult(int requestCode, int resultCode, Intent data) {
//        if (requestCode == RequestCode.SEND_ACK_MESSAGE) {
////            String content = data.getStringExtra(SendAckMsgActivity.EXTRA_CONTENT);
////            IMMessage message = MessageBuilder.createTextMessage(getContainer().account, SessionTypeEnum.Team, content);
////            message.setMsgAck();
////            sendMessage(message);
//        }
//    }
//}
